package com.ruoyi.map.service.impl;

import com.ruoyi.map.domain.FhMapCityCollect;
import com.ruoyi.map.mapper.FhMapCityCollectMapper;
import com.ruoyi.map.service.IFhMapCityCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author sangsijing
 * @since 2025/5/7 19:47
 */
@Service
public class FhMapCityCollectServiceImp implements IFhMapCityCollectService {

    @Autowired
    private FhMapCityCollectMapper fhMapCityCollectMapper;

    @Override
    public String getCollectStatus(Long userId, String area) {
        return fhMapCityCollectMapper.getCollectStatus(userId,area);
    }

    @Override
    public int addCollect(FhMapCityCollect fhMapCityCollect) {
        return fhMapCityCollectMapper.addCollect(fhMapCityCollect);
    }

    @Override
    public int deleteCollect(Long id) {
        return fhMapCityCollectMapper.deleteCollect(id);
    }

    @Override
    public List<FhMapCityCollect> getUserCity(Long userId) {
        return fhMapCityCollectMapper.getUserCity(userId);
    }
}
